package com.baiyang.app.tool.net;

import com.baiyang.app.ui.bookshelf.BookshelfService;

import java.io.File;

public class Urls {
    public static final String IP_ADDRESS = "192.168.43.34";
    public static final String WS = "ws://" + IP_ADDRESS + ":7990/websocket/test";
    public static final String IP = "http://" + IP_ADDRESS + ":7990";
    public static final String IMAGE = IP + "/image/";
    public static class User{
        private static String USER = IP + "/userOperation";
        public final static String REGISTER = USER + "/readerRegister";
        public final static String Login = IP + "/login";
        public final static String GET_BOOK_COIN_AND_INTEGRAL = USER + "/getBookCoinAndIntegral";
    }
    public static class Article{
        private static final String ARTICEL = IP + "/articleOperation";
        public static final String GET_DATA = ARTICEL + "/getData";
        public static final String GET_CONTENT = ARTICEL + "/getContent";
        public static final String GET_ARTICLE_BY_TYPE = ARTICEL + "/getArticleByType";
        public static final String GET_ARTICLE_BY_AUTHOR = ARTICEL + "/getArticleByAuthor";

    }

    public static class READ_RECORD{
        private static final String READ_RECORD = IP + "/readRecordOperation";
        // 阅读
        public static final String READ = READ_RECORD + "/read";
        public static final String GET_ARTICLE_BY_READ_RECORD = READ_RECORD + "/getArticleByReadRecord";
    }

    public static class COMMENT{
        private static final String COMMENT = IP + "/commentsOperation";
        public static final String ADD_COMMENT = COMMENT + "/addComment";
        public static final String GET_COMMENT = COMMENT + "/selectList";
        public static final String GET_COMMENT_RECORD = COMMENT + "/getCommentRecord";
    }

    public static class ARTICLE_TYPE{
        private static final String ARTICLE_TYPE = IP + "/articleTypeOperation";
        public static final String SELECT_ALL = ARTICLE_TYPE + "/selectList";
    }

    public static class BOOKSHELF{
        private static final String BOOKSHELF = IP + "/bookshelfOperation";
        public static final String GET_FOLLOW_STATE = BOOKSHELF + "/getFollowState";
        /** 关注 **/
        public static final String FOLLOW = BOOKSHELF + "/follow";
        /** 获取关注列表 **/
        public static final String GET_FOLLOW_LIST = BOOKSHELF + "/getFollowList";
    }

    public static class USER_INTEGRAL{
        private static final String USER_INTEGRAL = IP + "/userIntegralOperation";
        public static final String SIGN_IN = USER_INTEGRAL + "/signIn";
    }

    public static class BALANCE{
        private static final String BALANCE = IP + "/balanceOperation";
        public final static String RECHARGE = BALANCE + "/recharge";
    }

    public static class BILL{
        private static final String BILL = IP + "/billOperation";
        public final static String GET_USER_BILL = BILL + "/getUserBill";
    }

    public static class GOODS{
        private static final String GOODS = IP + "/goodsOperation";
        public static final String GET_PAGE = GOODS + "/getPage";
    }
    public static class EXCHANGE{
        private static final String EXCHANGE = IP + "/exchangeOperation";
        public static final String EXCHANGE_CON = EXCHANGE + "/exchange";
        public static final String GET_PAGE = EXCHANGE + "/getPage";
    }

}
